<template>
  <el-select
    v-model="selectId"
    clearable
    filterable
    :placeholder="$language.local('请选择') + $language.local('企业类型')"
    @change="selectChange"
  >
    <el-option label="企业" value="1"> </el-option>
    <el-option label="个体工商户" value="2"> </el-option>
  </el-select>
</template>

<script>
export default {
  props: ["value"],
  data() {
    return {
      selectId: "",
    };
  },
  watch: {
    value(newValue) {
      this.selectId = newValue;
    },
  },
  methods: {
    selectChange(e) {
      this.$emit("input", e);
    },
  },
};
</script>
<style lang="less" scoped>
.el-select {
  width: 100%;
}
</style>
